package com.dgw.logstash;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;

@SpringBootApplication
public class LogstashApplication {

    Logger logger = LoggerFactory.getLogger(LogstashApplication.class);

    @GetMapping("test")
    public String test(){
        logger.info("测试初始一些日志吧！");
        return "success";
    }

    public static void main(String[] args) {
        SpringApplication.run(LogstashApplication.class, args);
    }

}
